import { ContentTypeEnum } from '../enums/httpEnum'
import { request } from '/@/utils/http/axios'
// 教师工作台
// 我的评阅工作
export const myReviewWork = params => {
  return request({
    url: '/coreWork/getPyKmSelectList',
    method: 'GET',
    params,
  })
}

// 评阅点击图片记录(评阅时)
export const pyDtkqtClicFun = params => {
  return request({
    url: '/py/pyDtkqtClick',
    method: 'POST',
    params,
  })
}





// 获取评阅试题
export const getPyDataSelectList = params => {
  return request({
    url: '/coreWork/getPyDataSelectList?pageSize=0',
    method: 'GET',
    params,
  })
}

// 获取评阅中的试题
export const checkHasExistsPyzData = params => {
  return request({
    url: '/coreWork/checkExistsPyzData',
    method: 'GET',
    params,
  })
}





// 随机抽题(客观题)
export const getExtractZycKgt = params => {
  return request({
    url: `/coreWork/extractPyKgt`,
    method: 'GET',
    params,
  })
}

// 随机抽题(主观题)
export const getExtractZycZgt = params => {
  return request({
    url: `/coreWork/extractPyZgt`,
    method: 'GET',
    params,
  })
}


// 随机抽题(重评题)
export const getCpDataByAccount = params => {
  return request({
    url: `/py/getCpDataByAccount`,
    method: 'GET',
    params,
  })
}

//获取试卷的详情以及评阅标准
export const getZycwatchPaperCheck = params => {
  return request({
    url: `/coreWork/getPyStConfigData`,
    method: 'GET',
    params,
  })
}


// 得分明细主观题（统计得分） 废弃
export const getPyZycZgtSubmitData = params => {
  return request({
    url: `/py/getPyZycSubmitData4ZgtOnly`,
    method: 'GET',
    params,
  })
}

/**
 * 获取使用率高的评阅记录
 * @param params 参数对象
 * @returns 
 */
export const getfullyPyRecord = params => {
  return request({
    url: `/py/getUsefullyPyRecord`,
    method: 'GET',
    params,
  })
}


/**
 * 获取使用率高的评阅记录
 * @param params 参数对象
 * @returns 
 */
export const getHistoryPyRecordByYc = params => {
  return request({
    url: `/py/getHistoryPyRecordByYc`,
    method: 'GET',
    params,
  })
}


// 得分明细客观题（统计得分）
export const getPyZycKgtSubmitData = params => {
  return request({
    url: `/py/getPyZycSubmitData4KgtOnly`,
    method: 'GET',
    params,
  })
}

// 获取异常信息处理记录（主观题/客观题）
export const getYcRecord = params => {
  return request({
    url: `/yc/getYcProcessRecordList`,
    method: 'GET',
    params,
  })
}








// 评阅记录
export const getZycPyRecordListQuery = params => {
  return request({
    url: `/py/zycPyRecordListQuery?pageSize=${params.pageSize || 0}&pageNum=${params.pageNum || 1}`,
    method: 'POST',
    params,
  })
}



// 提交(客观题)
export const submitKgtTopic = params => {
  return request({
    url: `/py/pyKgtSubmit`,
    method: 'POST',
    params,
  })
}


// 提交（主观题）
export const submitTopic = params => {
  return request({
    url: `/py/pyZgtSubmit`,
    method: 'POST',
    params,
  })
}

// 异常重评
export const todoYcDftTopic = params => {
  return request({
    url: `/py/cpSubmit`,
    method: 'POST',
    params,
  })
}




// 首页统计
export const getStatisticsInfo = params => {
  return request({
    url: `/summary/commonBusinessSummarySimple`,
    method: 'GET',
    params,
  })
}


/**
 * 评阅统计详情（主观题）
 * @param params 参数对象
 * @returns 
 */
export const getSummaryStInfo = params => {
  return request({
    url: `/summary/commonBusinessSummaryStDetail4Zp`,
    method: 'GET',
    params,
  })
}

/**
 * 评阅统计详情（主观题）
 * @param params 参数对象
 * @returns 
 */
export const getSummaryKsInfo = params => {
  return request({
    url: `/summary/commonBusinessSummaryKsDetail4Zp`,
    method: 'GET',
    params,
  })
}


// 异常统计
export const getYcAboutInfo = params => {
  return request({
    url: `/summary/commonBusinessSummaryYcAbout`,
    method: 'GET',
    params,
  })
}


// 获取首页评阅列表
export const getcommonKmSummarySimple = params => {
  return request({
    url: '/summary/commonKmSummarySimple',
    method: 'GET',
    params,
  })
}




// 获取评阅完成申请信息
export const getPyOverApplyKmdm = params => {
  return request({
    url: '/basic/getPyOverApplyByKmdm',
    method: 'GET',
    params,
  })
}


// 提交评阅完成申请
export const setkmPyOverApply = params => {
  return request({
    url: '/basic/kmPyOverApply',
    method: 'POST',
    params,
  })
}


// 提交评阅完成申请
export const setPyOverAudit = params => {
  return request({
    url: '/basic/kmPyOverApplyAudit',
    method: 'POST',
    params,
  })
}



// 获取首页评阅列表
export const getcommonKmSummarySt = params => {
  return request({
    url: '/summary/commonKmSummarySt',
    method: 'GET',
    params,
  })
}


// 获取科目评阅进度
export const getKmPyProcess = params => {
  return request({
    url: '/summary/summaryKmPyProcessWithSt',
    method: 'GET',
    params,
  })
}



// 获取首页评阅列表
export const getPySzListByKmdm = params => {
  return request({
    url: '/coreWork/getPySzInfoListByKmdm',
    method: 'GET',
    params,
  })
}

// 获取首页评阅列表
export const getCommonKmSummaryChart = params => {
  return request({
    url: '/summary/commonKmSummaryCj4Chart',
    method: 'GET',
    params,
  })
}







// 评阅完成后指定教师重评
export const reviewCompletedReevaluationTeacher = params => {
  return request({
    url: `/ycXxDeal/reviewCompletedReevaluationTeacherKipExceptions`,
    method: 'POST',
    headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },
    params,
  })
}



// 获取学生机读卡列表
export const getStudentJdRecordListPage = params => {
  return request({
    url: `/jdController/getStudentJdRecordListPage`,
    method: 'GET',
    params,
  })
}
// 获取学生机读卡列表修改记录
export const JdRecordUpdateRecord = params => {
  return request({
    url: `/jdController/getStudentJdRecordUpdateRecord`,
    method: 'GET',
    params,
  })
}

// 获取打分回显相关的数据（切片，完整图片，得分点）
export const getPictureAndDfdByKmAndStId = params => {
  return request({
    url: `/py/getPictureAndDfdByKmAndStId`,
    method: 'GET',
    params,
  })
}











/**
 * 获取切片数据识别信息
 */

export const getDtkTypeByPyZycId = params => {
  return request({
    url: `/coreWork/getKgtsbjlListByDtkqtId`,
    method: 'POST',
    params,
  })
}




/**
 * 异常标准，
 * 在评阅过程中对发现的异常进行标准
 */
export const pyYcSubmit = params => {
  return request({
    url: `/py/pyYcSubmit`,
    method: 'POST',
    params,
  })
}
